package com.liip.app.ftp;

import org.apache.commons.net.ftp.FTP;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * FTP的配置信息
 * @Auther: luolin
 * @Date: 2020-10-14 4:06 PM
 * @Description:
 */
@Data
@Component
@PropertySource("classpath:ftp.properties")
@ConfigurationProperties(prefix = "ftp")
public class FTPProperties {
	private String username;
	 
	  private String password;
	 
	  private String host;
	 
	  private Integer port;
	 
	  private String baseUrl;
	 
	  private Integer passiveMode = FTP.BINARY_FILE_TYPE;
	 
	  private String encoding="UTF-8";
	 
	  private int clientTimeout=120000;
	 
	  private int bufferSize;
	 
	  private int transferFileType=FTP.BINARY_FILE_TYPE;
	 
	  private boolean renameUploaded;
	 
	  private int retryTime;
}